<?php

    defined('ROOT_PATH') || define('ROOT_PATH', realpath(dirname(dirname(dirname(__FILE__))) . ''));

    define("SITE_BASE_URL", rtrim(dirname($_SERVER['PHP_SELF'])), '/');
    define("SITE_HOST_URL", rtrim("http://" . $_SERVER['HTTP_HOST']), '/');
    define("SITE_HTTP_URL", rtrim("http://" . $_SERVER['HTTP_HOST'] . SITE_BASE_URL), '/');
    define("APPLICATION_URL", rtrim("http://" . $_SERVER['HTTP_HOST'] . SITE_BASE_URL), '/');
    define("IMAGES_URL", APPLICATION_URL . "/assets/images/");
    define("SITE_ACTUAL_PATH", "");
    define("USE_SALT", "quick");
    define("RATING_STARS_MAX", "10");
    define("COOKIE_EXPIRE_TIME", "3600");

    define('CSS_PATH', APPLICATION_URL . '/assets/css');
    define('JS_PATH', APPLICATION_URL . '/assets/js');
    define('FONTS_PATH', APPLICATION_URL . '/assets/fonts');
    define('IMAGES_PATH', APPLICATION_URL . '/assets/images');
    define('PLUGINS_PATH', APPLICATION_URL . '/assets/plugins');

    define("SAMPLE_IMAGE_PATH", "resources/gallery-pics");
    define("MEMBER_IMAGE_PATH", "resources/member-pics");
    define("MEMBER_IMAGE_WIDTH", "500");
    define("MEMBER_IMAGE_HEIGHT", NULL);
    define("MEMBER_NO_IMAGE_FILE", "resources/no-image/no-image.jpg");
    define("GALLERY_IMAGE_PATH", "resources/gallery-pics");
    define("EVENT_IMAGE_PATH", "resources/event-pics");
    define("EVENT_NO_IMAGE_FILE", "resources/no-image/no-image.jpg");

    define("ADMIN_APPLICATION_URL", SITE_HTTP_URL . "/admin");
    define('ADMIN_CSS_PATH', '/application/modules/admin/assets/css');
    define('ADMIN_JS_PATH', '/application/modules/admin/assets/js');
    define('ADMIN_IMAGES_PATH', '/application/modules/admin/assets/images');
    define('ADMIN_PLUGINS_PATH', '/application/modules/admin/assets/plugins');
    define('ADMIN_ASSETS_PATH', '/application/modules/admin/assets');

    if ($_SERVER["REMOTE_ADDR"] == "127.0.0.1")
    {
        define("FACEBOOK_APP_ID", "592433024127550");
        define("FACEBOOK_SECRET_ID", "45715c16c1ea7e43efdef510c0e886b2");
        define("FACEBOOK_CALLBACK_URL", "http://localhost/work/quickties/social/loginwithfacebook");

        define("TWITTER_APP_ID", "Z59vpVoz2dEvI2mPzhzfA");
        define("TWITTER_SECRET_ID", "fWRswiMsjCevblhaIrW6MbTYldAkzvDwe379Q7qLw");
        define("TWITTER_CALLBACK_URL", "http://127.0.0.1/work/quickties/social/loginwithtwitter");

        define("LINKEDIN_APP_ID", "svncvurjv1ox");
        define("LINKEDIN_APP_SECRET", "s3ffOCvRMltYTsbX");
        define("LINKEDIN_USER_TOKEN", "fa56b6ef-2793-4b92-b210-168c1c95bbca");
        define("LINKEDIN_USER_SECRET", "7d1cac05-dd4c-4a78-8386-bf61cd829a18");
        define("LINKEDIN_CALLBACK_URL", "http://127.0.0.1/work/quickties/social/loginwithlinkedin");
    }
    else
    {
        define("FACEBOOK_APP_ID", "592433024127550");
        define("FACEBOOK_SECRET_ID", "45715c16c1ea7e43efdef510c0e886b2");
        define("FACEBOOK_CALLBACK_URL", "http://quick-ties.com/social/loginwithfacebook");

        define("TWITTER_APP_ID", "Z59vpVoz2dEvI2mPzhzfA");
        define("TWITTER_SECRET_ID", "fWRswiMsjCevblhaIrW6MbTYldAkzvDwe379Q7qLw");
        define("TWITTER_CALLBACK_URL", "http://quick-ties.com/social/loginwithtwitter");

        define("LINKEDIN_APP_ID", "svncvurjv1ox");
        define("LINKEDIN_APP_SECRET", "s3ffOCvRMltYTsbX");
        define("LINKEDIN_USER_TOKEN", "fa56b6ef-2793-4b92-b210-168c1c95bbca");
        define("LINKEDIN_USER_SECRET", "7d1cac05-dd4c-4a78-8386-bf61cd829a18");
        define("LINKEDIN_CALLBACK_URL", "http://quick-ties.com/social/loginwithlinkedin");
    }

    define("PAYPAL_FORM_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr");
    define("PAYPAL_EMAIL", "yourname@email.com");

    define("AD_WIDTH", "241");
    define("AD_HEIGHT", "212");

    define("VERSION", "1.0");

    define("TIME_ZONE", "EST");

    define("IMAGE_EXTNSN", "jpg,gif,png");
?>
